import { system as http, auth as authHttp } from '@zh/common-utils/http'

export { http }

/**
 * 修改或保存
 * @param {Object} params
 */
export function saveOrUpdateSettingInfo (data) {
  return http.post('system/systemSetting/saveSystemSettingInfo', data)
}

/**
 * 查询系统设置信息
 */
export function getSysSystemSettingInfo () {
  return http.get('/system/systemSetting/getSysSystemSettingInfo', {
    needToken: false
  })
}

/**
 * 查询系统设置信息-新
 */
export function getSystemInfo () {
  return http.get('/system/systemSetting/getSystemInfo', {
    needToken: false,
    handleError: false
  })
}

/**
 * 清除缓存
 */
export function removecache (params) {
  return authHttp.post('/removecache', params)
}